package com.yz.common.resp;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * author: Mr.Du
 * Date: 2023/11/30
 * Time: 15:19
 */
public class HttpStatus {

    /**
     * 操作成功
     */
    public static final int SUCCESS = 200;

    /**
     * 对象创建成功
     */
    public static final int CREATED = 201;

    /**
     * 请求已经被接受
     */
    public static final int ACCEPTED = 202;

    /**
     * 操作已经执行成功，但是没有返回数据
     */
    public static final int NO_CONTENT = 204;

    /**
     * 资源已被移除
     */
    public static final int MOVED_PERM = 301;

    /**
     * 重定向
     */
    public static final int SEE_OTHER = 303;

    /**
     * 资源没有被修改
     */
    public static final int NOT_MODIFIED = 304;

    /**
     * 参数列表错误（缺少，格式不匹配）
     */
    public static final int BAD_REQUEST = 400;

    /**
     * 未授权
     */
    public static final int UNAUTHORIZED = 401;

    /**
     * 访问受限，授权过期
     */
    public static final int FORBIDDEN = 403;

    /**
     * 资源，服务未找到
     */
    public static final int NOT_FOUND = 404;

    /**
     * 不允许的http方法
     */
    public static final int BAD_METHOD = 405;

    /**
     * 资源冲突，或者资源被锁
     */
    public static final int CONFLICT = 409;

    /**
     * 不支持的数据，媒体类型
     */
    public static final int UNSUPPORTED_TYPE = 415;



    /**
     * 接口未实现
     */
    public static final int NOT_IMPLEMENTED = 501;

    /**
     * SYSTEM_ERROR
     *
     */

    /**
     * 系统错误
     */
    public static final int ERROR_SYSTEM = 200000;

    /**
     * token过期
     */
    public static final int ERROR_TOKEN_EXPIRE = 200001;

    /**
     * 无权限
     */
    public static final int ERROR_PERMISSION = 200002;

    /**
     * 更新错误
     */
    public static final int ERROR_UPDATE = 200003;

    /**
     * 添加错误
     */
    public static final int ERROR_ADD = 200004;

    /**
     * 删除错误
     */
    public static final int ERROR_DELETE = 200005;

    /**
     * 请求错误
     */
    public static final int ERROR_REQUEST = 200006;

    /**
     * 参数为空
     */
    public static final int ERROR_PARAMS_IS_NULL = 200007;

    /**
     * 系统内部错误
     */
    public static final int ERROR = 200008;

    /**
     * 系统警告消息
     */
    public static final int WARN = 200009;


    /**
     * 用户名不存在错误
     */
    public static final int ERROR_USERNAME_IS_NOT_EXIST = 200100;

    public static final int ERROR_USERNAME_IS_EXIST = 200101;

    public static final int ERROR_PASSWORD = 200102;

    public static final int ERROR_EMAIL = 200103;

    public static final int ERROR_EMAIL_IS_EXIST = 200104;

    public static final int ERROR_CODE = 200105;

    public static final int ERROR_REGISTER = 200106;

    public static final int ERROR_LOGIN = 200107;

    /**
     * USER_ERROR
     */
    public static final int ERROR_USER_NOT_EXIST = 200108;





}
